.recharge-container {
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.recharge-page {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.page-header {
  margin-bottom: 20px;

  h1 {
    font-size: 28px;
    color: #111;
    font-weight: 400;
  }
}

// 自定义步骤条样式
.custom-steps {
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;

  .step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;

    &:nth-child(2) {
      align-items: center;
      .step-content {
        align-items: center;
      }
    }

    &:last-child {
      align-items: flex-end;
      .step-content {
        align-items: flex-end;
      }
    }

    .step-icon {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #e4e7ed;
      color: #909399;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      margin-bottom: 8px;
      transition: all 0.3s;
    }

    .step-content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
    }

    .step-title {
      font-size: 14px;
      color: #909399;
      margin-bottom: 8px;
      transition: all 0.3s;
    }

    .step-line {
      height: 2px;
      background: #e4e7ed;
      width: calc(100% - 16px);
      transition: all 0.3s;
    }

    &.completed {
      .step-icon {
        background: #67c23a;
        color: white;
      }
      .step-title {
        color: #67c23a;
      }
      .step-line {
        background: #67c23a;
      }
    }

    &.active {
      .step-icon {
        background: #409eff;
        color: white;
      }
      .step-title {
        color: #409eff;
      }
      .step-line {
        background: #e4e7ed;
      }
    }

    &:last-child {
      .step-line {
        display: none;
      }
    }
  }
}

// 卡片通用样式
.crypto-card,
.deposit-card,
.history-card,
.notice-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

// 币种列表样式
.crypto-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.crypto-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;

  &:hover {
    border-color: #1890ff;
    background: #f8f8f8;
  }

  &.active {
    border-color: #1890ff;
    background: #e6f7ff;
  }

  .coin-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }

  .coin-info {
    flex: 1;

    .symbol {
      display: block;
      font-size: 16px;
      font-weight: 500;
      color: #111;
    }

    .name {
      display: block;
      font-size: 12px;
      color: #666;
    }
  }

  .network-info {
    text-align: right;

    .label {
      display: block;
      font-size: 12px;
      color: #999;
    }

    .networks {
      display: block;
      font-size: 12px;
      color: #999;
    }
  }
}

// 充值表单样式
.deposit-form {
  max-width: 600px;

  :deep(.el-select),
  :deep(.el-input-group) {
    width: 450px;

    @media (max-width: 768px) {
      width: 100%;
      max-width: 100%;
    }
  }

  .network-warning,
  .address-tip {
    margin-top: 8px;
    font-size: 12px;
  }

  .network-warning {
    color: #ff4d4f;
    i {
      margin-right: 4px;
    }
  }

  .address-tip {
    color: #666;
    i {
      color: #faad14;
      margin-right: 4px;
    }
  }

  .address-container {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .qr-section {
      text-align: center;

      .qr-code {
        width: 200px;
        height: 200px;
        padding: 16px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;

        @media (max-width: 768px) {
          width: 160px;
          height: 160px;
          padding: 12px;
        }
      }

      .scan-tip {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        color: #666;
      }
    }
  }
}

// 币种图标样式
.crypto-cell {
  display: flex;
  align-items: center;
  gap: 8px;

  .mini-icon {
    width: 20px;
    height: 20px;
  }
}

// 充值说明样式
.notice-card {
  h3 {
    font-size: 16px;
    color: #111;
    margin-bottom: 16px;
    font-weight: 500;
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      color: #666;
      font-size: 14px;
      line-height: 1.8;
      margin-bottom: 8px;
      padding-left: 20px;
      position: relative;

      &::before {
        content: "•";
        color: #999;
        position: absolute;
        left: 0;
      }
    }
  }
}

// 导航样式
.page-nav {
  margin-bottom: 20px;

  .breadcrumb {
    margin-bottom: 16px;

    :deep(.el-breadcrumb__item) {
      .el-breadcrumb__inner {
        color: #666;
        font-weight: normal;

        &:hover {
          color: #1890ff;
        }

        i {
          margin-right: 4px;
        }
      }
    }
  }

  .divider {
    height: 1px;
    background: #e8e8e8;
    margin: 0;
  }
}

// 移动端列表样式
.mobile-history-list {
  .history-item {
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;

    &:last-child {
      margin-bottom: 0;
    }

    .history-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;

      &:last-child {
        margin-bottom: 0;
      }

      .label {
        color: #909399;
        font-size: 14px;
        min-width: 70px;
      }

      .value {
        flex: 1;
        text-align: right;
        font-size: 14px;
        color: #303133;
        word-break: break-all;

        &.crypto-cell {
          display: flex;
          align-items: center;
          justify-content: flex-end;
          gap: 4px;
        }
      }
    }
  }
}

// 移动端适配
@media (max-width: 768px) {
  .deposit-form {
    padding: 0;
    width: 100%;

    .address-container {
      gap: 16px;
      width: 100%;
    }

    .address-content {
      width: 100%;
    }

    :deep(.el-form-item) {
      margin-bottom: 16px;
      width: 100%;

      .el-form-item__content {
        width: 100%;
      }
    }
  }

  .crypto-card,
  .deposit-card,
  .history-card,
  .notice-card {
    padding: 16px;
  }

  .custom-steps {
    padding: 0 16px;

    .step-item {
      .step-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
      }

      .step-title {
        font-size: 12px;
      }
    }
  }
}
